.bg{
    background:red;

}

.position{
    position: absolute;
    left: 50%;
    top: 50%;
}

#box{
    width: 200px;
    height: 200px;
}

.border{
    border: 1px solid green;
}